package com.pyue.eam.regi.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pyue.eam.admin.api.base.BaseEntity;
import com.pyue.eam.app.api.entity.AppUser;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 团队成员表
 *
 * @date 2023-12-04 11:20:12
 */
@Data
@TableName("cq_regi_user")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "团队成员表")
public class CqRegiUserEntity extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "id")
    private Integer id;

    /**
     * regiId
     */
    @Schema(description = "regiId")
    private Long regiId;

    /**
     * 用户id
     */
    @Schema(description = "用户id")
    private Long userId;

    /**
     * 是否管理员
     */
    @Schema(description = "是否管理员")
    private Integer adminFlag;

    /**
     * 入职日期
     */
    @Schema(description = "入职日期")
    private LocalDate startTime;

    /**
     * 头像
     */
    @Schema(description = "头像")
    private String userAvatar;

    /**
     * 团队人员评分
     */
    @Schema(description = "团队人员评分")
    private String score;

    /**
     * 地址
     */
    @Schema(description = "地址")
    private String address;

    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    private String addressDetail;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 用户信息
     */
    @TableField(exist = false)
    @Schema(description = "用户信息")
    private AppUser appUser;

}
